<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>

<form action="/result" method="post">
<label>
    <select name="districtId">
        <option th:each="district:${districtList}" th:value="${district.id}" th:text="${district.name}"></option>
    </select>
</label>
<input type="submit" value="提交">
</form>
</body>
</html>